/*!
 * @file Rectangle.cpp
 * @author naoki takeda
 * @version 1.0
 */
#include "StdAfx.h"
#include "NTEngine/Math/Rectangle.h"

namespace NTEngine
{
namespace Math
{

Rectangle::Rectangle(int tX, int tY, int width, int height)
: x(tX), y(tY), w(width), h(height)
{
}

Rectangle::Rectangle(const Rectangle& a)
: x(a.x), y(a.y), w(a.w), h(a.h)
{
}

void Rectangle::operator =(const Rectangle& a)
{
	x = a.x;
	y = a.y;
	w = a.w;
	h = a.h;
}

bool Rectangle::operator==(const Rectangle& a) const
{
	return (x == a.x) && (y == a.y) && (w == a.w) && (h == a.h);
}

bool Rectangle::operator!=(const Rectangle& a) const
{
	return (x != a.x) || (y != a.y) || (w != a.w) || (h != a.h);
}

bool Rectangle::contains(int tX, int tY) const
{
	return false;
}

bool Rectangle::contains(int tX, int tY, int width, int height) const
{
	return false;
}

bool Rectangle::contains(const Rectangle& a) const
{
	return false;
}

void Rectangle::set(int tX, int tY, int width, int height)
{
	x = tX;
	y = tY;
	w = width;
	h = height;
}

} // namespace Math
} // namespace NTEngine
// EOF